﻿<?php 
get_header(); 
?> 
<div id="aevo_center">
		<div id="banda_sx">
<!--
	EVENTI Slider
-->
			<div class="aevo_news_hp">
				<div id="aevo_news_titolo_hp">
				EVENTI
				</div>
				<div id="navi_2">
						<ul>
							<li> <a id="aevo_news_hp_button1" class="active" href="#" ></a> </li>
							<li> <a id="aevo_news_hp_button2" href="#" ></a> </li>
							<li> <a id="aevo_news_hp_button3" href="#" ></a> </li>
						</ul>
				</div>
				<?php display_news_slider_link_hp(); ?>
				<div class="cleared"></div>
			</div>
<!--
	Newsletter
-->
			<div id="aevo_newsletter_hp">
					<?php $page_id_newsletter = 98; ?>
					<?php box_newsletter($page_id_newsletter); ?>
			</div>	
			<div class="cleared"></div>
		</div>
			
<!--
	Contenuti
-->
		<div id="aevo_contenuti_hp">
			<div id="aevo_contenuti_titolo_hp">
				<div id="aevo_contenuti_titolo_formato_hp">
					Benvenuti in Accademia!
				</div>
				<div id="aevo_contenuti_titolo_oradata_hp">
					<div id="aevo_contenuti_oradata_formato_hp">
						<?php
							date_default_timezone_set("Europe/Paris");
						?>
						<?php 
							echo date_i18n("d F Y - G:i" ,time()); ?>
					</div>
				</div>
			</div>
			<?php 
				query_posts( array ( 'category_name' => 'hp_evidenza_sx'));
				echo '<div id="aevo_hp_evidenza_sx">';
					if ( have_posts()) {
						the_post();
						box_manager($post->ID);
					} else {
						echo "hp_evidenza_sx non definito !!";
					}
				echo '</div>';	
				wp_reset_query();
			?>
			<div class="cleared"></div>
			<?php 
				query_posts( array ( 'category_name' => 'hp_evidenza_centro'));
				echo '<div id="aevo_hp_evidenza_centro">';
					if ( have_posts()) {
						the_post();
						box_manager($post->ID);
					} else {
						echo "hp_evidenza_centro non definito !!";
					}
				echo '</div>';	
				wp_reset_query();
			?>
			<div class="cleared"></div>
			<?php 
				query_posts( array ( 'category_name' => 'hp_evidenza_dx'));
				echo '<div id="aevo_hp_evidenza_dx">';
					if ( have_posts()) {
						the_post();
						box_manager($post->ID);
					} else {
						echo "hp_evidenza_dx non definito !!";
					}
				echo '</div>';
				wp_reset_query();
			?>
			<div class="cleared"></div>
		</div>
<!--
	Banner
-->
		<div id="aevo_banner_hp" style="background-image: url(<?php $str=get_post_meta(418,'vieni-a-trovarci', TRUE);   echo bloginfo('url').'/'.substr( $str, strpos( $str, '/wp-content/') );?>)"> </div>
<!--
	Contatti
-->
		<div id="aevo_contatti_hp">
				<?php 
					$page_id_contatti_banda_sx = 247;  
					$page_id_contatti = 63 ;
					box_contatti($page_id_contatti_banda_sx,$page_id_contatti); 
				?>
		</div>	
		<div class="cleared"></div>
</div>
<!--	Footer-->		
<div id="aevo_footer_hp">
	<?php get_footer(); ?>
</div>

</body>
</html>